<style>
.display{
	display:none;
}

</style>
<?{include file='modules/head.html'}?>

<div style="background: #FFBD9D;display:none;" id="add_content">
<ul>
	<li><?{if $msg neq ""}?><?{$msg}?><?{/if}?></li>
	<li>组名: 
		<input type="text" name="title" id="add_title" /> 
		<input type="button" name="button" id="add_but" value="添加" />
	</li>
	<li><a href="javascript:void(0)" id="close_add" calss="close">关闭</a></li>
</ul>
</div>


<div style="background: #FFBD9D;display:none;" id="edit_content">
<form action="<?{$baseurl}?>/purview/groups" method="post">
<ul>
	<li><?{if $msg neq ""}?><?{$msg}?><?{/if}?></li>
	<li>组名: 
		<input type="hidden" name="edit_id" id="edit_id" /> 
		<input type="text" name="title" id="edit_title" /> 
		<input type="button" name="submit" id="edit_but" value="修改" />
	</li>
	<li><a href="javascript:void(0)" id="close_edit" calss="close">关闭</a></li>
</ul>
</form>
</div>




<table>
	<tr>
	 <th></th>
		<th>序号</th>
		<th>组名</th>
	</tr>

	<?{foreach from=$ret item=values}?>
	<tr id="data">
	<td> <input type="checkbox"  name="group[]" id="checkbox" value="<?{$values.id}?>" /></td>
		<td><?{$values.id}?></td>
		<td id="<?{$values.id}?>"><?{$values.title}?></td>
	</tr>
	<?{/foreach}?>
</table>
<script src="<?{$template_dir}?>/js/postPurFrom.js"></script>